package com.carnation._concurrent_collection;

import java.util.concurrent.PriorityBlockingQueue;

/**
 * <p>
 * PriorityBlockingQueue
 * </p>
 *
 * @author: Sunny
 * @date: 2021/2/2
 * @version: v1.0.0
 */
public class PriorityBlockingQueueTest {

    public static void main(String[] args) throws InterruptedException {
        PriorityBlockingQueue queue = new PriorityBlockingQueue();
        queue.put(1);
        System.out.println(queue.take());
    }

}
